# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-flask-cors
_pkgname=Flask-Cors
pkgver=3.0.10
pkgrel=2
pkgdesc='A Flask extension adding a decorator for CORS support.'
arch=('any')
url='https://pypi.org/project/Flask-Cors/#files'
license=('MIT')
depends=('python2-flask' 'python2-six')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/Flask-Cors-$pkgver.tar.gz")
sha512sums=('5a44f30936c34901e99060b19860e63835f6621311beecdeb23181bcf1ee99034e751cce29163cb7dd1abdccacc4ae34e491055d6fe7b995a0e635e1520ba6e9')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

